
#ifdef HRKEXPORT_EXPORTS
#define HRKEXPORT_API __declspec(dllexport)
#else
#define HRKEXPORT_API __declspec(dllimport)
#endif

#include "resource.h"

class CHrkStream;
class CHrkExportApp

#ifdef _MFC_BUILD
	:public CWinApp
#endif

{
public:
	TCHAR* LoadString(int id);

	void* AllocMemory( int size );
	void FreeMemory( void* ptr );

	_AFX_THREAD_STATE m_stat;

#ifndef _MFC_BUILD
	HINSTANCE m_hInstance;
#endif

protected:
	std::vector<void*> m_MemoryPtrPool;

public:
	virtual int ExitInstance();
	virtual BOOL InitInstance();
	virtual HINSTANCE LoadAppLangResourceDLL();

	void MessageBoxV( const TCHAR* caption, const TCHAR* fmt,...);
};

extern CHrkExportApp theApp;
